package com.dhcc.sds.base.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.framework.base.mapper.BaseMapper;
import com.dhcc.sds.base.entity.SdsQcformItemEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 表单项目表
 * 
 * @ClassName: SdsQcformItemMapper
 * @Description: TODO
 * @author sunyingjie
 * @date 2021-03-22 10:10:46
 */
public interface SdsQcformItemMapper  extends BaseMapper<SdsQcformItemEntity> {
	
    List<SdsQcformItemEntity> list(@Param("map")Map<String, Object> map);
    List<SdsQcformItemEntity> page(@Param("page") Page<SdsQcformItemEntity> page,@Param("map")Map<String, Object> map);
    List<Map<String, Object>> findItemCats(@Param("map")Map<String, Object> map);
    List<SdsQcformItemEntity> listByCat(@Param("map")Map<String, Object> map);

    List<SdsQcformItemEntity> selectItemCat(@Param("entityId") Long entityId);

    List<SdsQcformItemEntity> selectItemByCat(@Param("entityId") Long entityId, @Param("btItemCat") String btItemCat);
    List<Map<String, String>> getItemResult(@Param("map")Map<String, Object> map);
    List<Map<String, String>> getBusiItemResult(@Param("map")Map<String, Object> map);
    Map<String, Object> getAsmtByItemId(@Param("itemId") Long itemId);
    List<Map<String,Object>> getASMTItems(@Param("asmtId")Long asmtId, @Param("patientId")Long patientId);
    List<Map<String,Object>> getASMTJudgeRange(@Param("asmtId")Long asmtId);
    List<Map<String,Object>> getASMTItemDics(@Param("itemId")Long itemId);
    List<Map<String,Object>> getConfigByCode(@Param("itemCode")String itemCode);
    List<Map<String,Object>> getItemDicByCode(@Param("itemCode")String itemCode, @Param("dicCode")String dicCode);
}
